Repository navigation
feat(reusable-ci): opt-in free-runner-disk input for Go CI - #385
Merged
Merged
Conversation
Adds a boolean input, free-runner-disk (default false). When it is true on a Linux runner, Go CI removes the preinstalled .NET, Android, GHC and CodeQL toolchains (about 25 GB) before setup-go restores its cache. audiobook-organizer's Go CI hit "final link failed: No space left on device" with its large Go cache and -race test binaries. Off by default, so existing callers are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011To9HMPWLJ4CK19QKvZ7kM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011To9HMPWLJ4CK19QKvZ7kM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a boolean input,
free-runner-disk(defaultfalse). When it is true on a Linux runner, the Go CI job removes/usr/share/dotnet,/usr/local/lib/android,/opt/ghcand/opt/hostedtoolcache/CodeQL(about 25 GB) beforesetup-gorestores its cache.Why: audiobook-organizer's Go CI job failed with
/usr/bin/ld: final link failed: No space left on device. A hosted ubuntu runner leaves about 14 GB free, and a large Go cache plus-racetest binaries fill it. If the disk fills during the cache restore itself, the runner can't write its diagnostic log, so the job shows no output at all. That repo's ownci.ymlalready does this in every job that restores the Go cache (falkcorp/audiobook-organizer#4363). This PR brings the reusable workflow's Go CI into line.The input is off by default, so existing callers keep their toolchains and see no change. actionlint passes.
.github/guid-index.jsonwas regenerated by the pre-commit hook.🤖 Generated with Claude Code
https://claude.ai/code/session_011To9HMPWLJ4CK19QKvZ7kM